package com.job.GaoYuXuan.Homework0709;

import java.util.Scanner;

/**
 * @author 盖
 * @version 1.0
 * @since 2022-07-10 13:20:08
 */
public class Calculation {
    private String name;   //计算器名称
    private ThinComputer com1;
    public float sumfinal(float a,float b){
        float s = com1.sum(a,b);
        return s;
    }

    public static void main(String[] args) {
        Calculation ca = new Calculation();
        ThinComputer t = new ThinComputer(5);
        Scanner input = new Scanner(System.in);
        float a = input.nextFloat();
        float b = input.nextFloat();
        ca.setCom1(t);
        float s = ca.sumfinal(a, b);
        System.out.println("Sum = " + s);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ThinComputer getCom1() {
        return com1;
    }

    public void setCom1(ThinComputer com1) {
        this.com1 = com1;
    }
}